import request from "@/utils/request";

/**
 * 分页查询表白墙父级评论
 * @param param
 * @returns {AxiosPromise}
 */
export function pageParentComment(param, uuid) {
    return request({
        url: '/confessional-wall-comment/page/parent-comment/' + uuid,
        method: 'get',
        params: param
    })
}

/**
 * 分页查询该评论下子集评论
 * @param param
 * @returns {AxiosPromise}
 */
export function pageChildrenComment(param, uuid) {
    return request({
        url: '/confessional-wall-comment/page/children-comment/' + uuid,
        method: 'get',
        params: param
    })
}

/**
 * 删除评论
 * @param uuid
 * @returns {AxiosPromise}
 */
export function deleted(uuid) {
    return request({
        url: '/confessional-wall-comment/delete/' + uuid,
        method: 'delete',
    })
}

